<?php

class Login_model extends CI_Model {

    function __construct() {
        
    }

    public function verify_user($username, $password) {
        $this->db->select('*')
                ->from('users')
                ->where('username', $username)
                ->where('password', md5($password))
                ->limit(1);
        $query = $this->db->get();
        if ($query->num_rows() == 1) {
            return $query->result();
        } else {
            return false;
        }
    }

}